<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul class="list">
        <li>1111</li>
        <li>1112</li>
        <li>1113</li>
        <li>1114</li>
        <li>1115</li>
    </ul>
    <script>
        //dom节点
        //文本节点
        //属性节点
        var list=document.querySelector('.list');

        console.log(list);
        console.log(list.childNodes[1])
        console.log(list.children) 

        console.log(list.firstChild)
        console.log(list.lastChild)
        console.log(list.children[0])
        console.log(list.children[list.children.length-1])

        console.log(list.children[0].parentNode) //父节点 所有的

        console.log(list.children[0].nextSibling.nextSibling)//下一个 包含text节点
        console.log(list.children[0].nextElementSibling)


        console.log(list.children[3])
        console.log(list.children[3].previousSibling)//包含文本text节点 上一个
        console.log(list.children[3].previousElementSibling) 

    </script>
</body>
</html>